import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

import '../components/PageWrap.dart';

class ButtonLn extends StatefulWidget {
  const ButtonLn({super.key});

  @override
  State<ButtonLn> createState() => _ButtonLnState();
}

class _ButtonLnState extends State<ButtonLn> {
  @override
  Widget build(BuildContext context) {
    return PageWrap(
      title:"按钮",
      children: <Widget>[
        ElevatedButton(
          child: Text("normal"),
          onPressed: () {},
        ),
        TextButton(
          child: Text("normal"),
          onPressed: () {},
        ),
        OutlinedButton(
          child: Text("normal"),
          onPressed: () {},
        ),
        IconButton(
          icon: Icon(Icons.thumb_up),
          onPressed: () {},
        ),
        //带图标的按钮
        ElevatedButton.icon(
          icon: Icon(Icons.send),
          label: Text("发送"),
          onPressed: (){},
        ),
        OutlinedButton.icon(
          icon: Icon(Icons.add),
          label: Text("添加"),
          onPressed: (){},
        ),
        TextButton.icon(
          icon: Icon(Icons.info),
          label: Text("详情"),
          onPressed: (){},
        ),
      ],
    );

  }
}
